package sl.sl25;

import org.springframework.stereotype.Service;
import sl.sl2.dao.UserDao;
import sl.sl2.dao.impl.UserDaoImpl;
import sl.sl2.pojo.User;
import sl.sl2.service.UserService;

import javax.annotation.Resource;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Resource(type = UserDaoImpl.class)
    private UserDao dao;

    /**
     * 保存用户信息
     *
     * @param user
     */
    @Override
    public void save(User user) {
        dao.save(user);
    }

}
